<h3 class="content-title">Trang Chủ</h3>
<hr/>
<div class="content-center">
    <div class="notice">
        <b>Ghi chú</b><hr/>
        <ul>
            <li><b>06/09/2011 - 01:01</b> : <span style="color: #060">Update Link view comment.</span></li>
            <li><b>06/09/2011 - 02:40</b> : <span style="color: #060">Update category in comment.</span></li>
            <li><b>07/09/2011 -> 10/09/2011</b> : <span style="color: #c00">Update module NEWS.</span></li>
        </ul>
    </div>

    <div class="success">
        <?php 
        if($arrComment['total'] > 0)
        {
        ?>
            <b><a title="xem tất cả các bình luận" href="<?php echo site_url(); ?>/comment">Bình luận mới (<span id="total_cm"><?php echo $arrComment['total']; ?></span>)</a></b><hr/>
            <ul id="list_cm">
        <?php
            foreach($arrComment['data'] as $comment)
            {
        ?>
                <li id="cm_<?php echo $comment['cm_id']; ?>">
                    <span>
                        <input type="checkbox" class="verify_box" name="verify_box" value="<?php echo $comment['cm_id']; ?>" />
                    </span>
                    <span tooltip="Bài viết: <?php echo $comment['title']; ?>">
                        <a href="#"><?php echo $comment['content']; ?></a>
                    </span>
                    <span>
                        ...<a style="font-style: italic; color: #c00" href="<?php echo site_url().'/comment/delete/id/'.$comment['cm_id']; ?>" onclick="return confirm('Bạn có muốn xóa bình luận này không?');">Xóa</a>
                    </span>
                </li>
        <?php
            }
            if($arrComment['total'] > 5)
            {
                echo '<li>...<a href="'.site_url().'/comment">xem tất cả</a></li>';
            }
        ?>
            </ul>
        <?php
        }
        else
        {
        ?>
            <p>Hiện giờ chưa có bình luận mới nào.</p>
        <?php
        }
        ?>
    </div>
</div>
